﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<meta http-equiv="MSThemeCompatible" content="Yes"/>
<title>选择要登录的站点</title>
<style type="text/css">
body,form,div,p{
	margin:0px;
	padding:0px;
	font-size:12px;
	font-family:微软雅黑, 宋体;
	cursor:default;
}
#center
{
	width:296px;
	height:100%;
	padding-top:80px;
	margin:0px auto;
}
#sites{
	line-height:20px;
}
input{
	font-size:12px;
	font-family:微软雅黑, 宋体;
	position:relative;
	top:2px;
}
</style>
<script type="text/javascript" language="javascript">
	var tsimActions={
		reload:function(){
			window.location=window.location+'';
		},
		help:function(){
			alert('请您选择一个要连接的目标应用站点！');
		}
	};
	function siteChange(o){
		if(o==undefined || o==null) o=event.srcElement;
		var v=o.value;
		if(v=='') return;
		window.location='IDH_REDIRECT_SITES?redirect='+encodeURIComponent(v);
	}
	function addUrl(v,t,ext){
		if(v==undefined || v==null || v.length==0) return;
		if(t==undefined || t==null || t.length==0) t=v;
		if(window.selsitesidx==undefined) window.selsitesidx=0;
		var id='selsites_'+(window.selsitesidx++);
		var o=document.createElement('input');
		o.type='radio';
		o.id=id;
		o.name='selsites';
		if(ext==undefined || ext==null || ext.length==0) ext='.jsp';	//TODO：如果没有提供扩展名，那么通过ajax用.jsp和.aspx猜测扩展名，同时建议安装初始化时记录文件的扩展名
		o.value=v+ext;
		o.onclick=siteChange;
		var ol=document.createElement('label');
		ol.htmlFor=id;
		ol.innerHTML=t;
		var el=document.getElementById('sites');
		el.appendChild(o);
		el.appendChild(ol);
		el.appendChild(document.createElement('br'));
	}
</script>
</head>
<body>
<div id="center">
	<div>请选择一个要登录的目标站点：</div>
	<div id="sites"></div>
</div>
</body>
</html>